package com.ruoyi.system.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FlowChartExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FlowChartExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameIsNull() {
            addCriterion("flow_chart_name is null");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameIsNotNull() {
            addCriterion("flow_chart_name is not null");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameEqualTo(String value) {
            addCriterion("flow_chart_name =", value, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameNotEqualTo(String value) {
            addCriterion("flow_chart_name <>", value, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameGreaterThan(String value) {
            addCriterion("flow_chart_name >", value, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameGreaterThanOrEqualTo(String value) {
            addCriterion("flow_chart_name >=", value, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameLessThan(String value) {
            addCriterion("flow_chart_name <", value, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameLessThanOrEqualTo(String value) {
            addCriterion("flow_chart_name <=", value, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameLike(String value) {
            addCriterion("flow_chart_name like", value, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameNotLike(String value) {
            addCriterion("flow_chart_name not like", value, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameIn(List<String> values) {
            addCriterion("flow_chart_name in", values, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameNotIn(List<String> values) {
            addCriterion("flow_chart_name not in", values, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameBetween(String value1, String value2) {
            addCriterion("flow_chart_name between", value1, value2, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andFlowChartNameNotBetween(String value1, String value2) {
            addCriterion("flow_chart_name not between", value1, value2, "flowChartName");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andFlowMenuIsNull() {
            addCriterion("flow_menu is null");
            return (Criteria) this;
        }

        public Criteria andFlowMenuIsNotNull() {
            addCriterion("flow_menu is not null");
            return (Criteria) this;
        }

        public Criteria andFlowMenuEqualTo(String value) {
            addCriterion("flow_menu =", value, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuNotEqualTo(String value) {
            addCriterion("flow_menu <>", value, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuGreaterThan(String value) {
            addCriterion("flow_menu >", value, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuGreaterThanOrEqualTo(String value) {
            addCriterion("flow_menu >=", value, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuLessThan(String value) {
            addCriterion("flow_menu <", value, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuLessThanOrEqualTo(String value) {
            addCriterion("flow_menu <=", value, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuLike(String value) {
            addCriterion("flow_menu like", value, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuNotLike(String value) {
            addCriterion("flow_menu not like", value, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuIn(List<String> values) {
            addCriterion("flow_menu in", values, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuNotIn(List<String> values) {
            addCriterion("flow_menu not in", values, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuBetween(String value1, String value2) {
            addCriterion("flow_menu between", value1, value2, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andFlowMenuNotBetween(String value1, String value2) {
            addCriterion("flow_menu not between", value1, value2, "flowMenu");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonIsNull() {
            addCriterion("notify_person is null");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonIsNotNull() {
            addCriterion("notify_person is not null");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonEqualTo(String value) {
            addCriterion("notify_person =", value, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonNotEqualTo(String value) {
            addCriterion("notify_person <>", value, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonGreaterThan(String value) {
            addCriterion("notify_person >", value, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonGreaterThanOrEqualTo(String value) {
            addCriterion("notify_person >=", value, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonLessThan(String value) {
            addCriterion("notify_person <", value, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonLessThanOrEqualTo(String value) {
            addCriterion("notify_person <=", value, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonLike(String value) {
            addCriterion("notify_person like", value, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonNotLike(String value) {
            addCriterion("notify_person not like", value, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonIn(List<String> values) {
            addCriterion("notify_person in", values, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonNotIn(List<String> values) {
            addCriterion("notify_person not in", values, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonBetween(String value1, String value2) {
            addCriterion("notify_person between", value1, value2, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andNotifyPersonNotBetween(String value1, String value2) {
            addCriterion("notify_person not between", value1, value2, "notifyPerson");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlIsNull() {
            addCriterion("flow_chart_html is null");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlIsNotNull() {
            addCriterion("flow_chart_html is not null");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlEqualTo(String value) {
            addCriterion("flow_chart_html =", value, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlNotEqualTo(String value) {
            addCriterion("flow_chart_html <>", value, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlGreaterThan(String value) {
            addCriterion("flow_chart_html >", value, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlGreaterThanOrEqualTo(String value) {
            addCriterion("flow_chart_html >=", value, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlLessThan(String value) {
            addCriterion("flow_chart_html <", value, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlLessThanOrEqualTo(String value) {
            addCriterion("flow_chart_html <=", value, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlLike(String value) {
            addCriterion("flow_chart_html like", value, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlNotLike(String value) {
            addCriterion("flow_chart_html not like", value, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlIn(List<String> values) {
            addCriterion("flow_chart_html in", values, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlNotIn(List<String> values) {
            addCriterion("flow_chart_html not in", values, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlBetween(String value1, String value2) {
            addCriterion("flow_chart_html between", value1, value2, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andFlowChartHtmlNotBetween(String value1, String value2) {
            addCriterion("flow_chart_html not between", value1, value2, "flowChartHtml");
            return (Criteria) this;
        }

        public Criteria andSpareIsNull() {
            addCriterion("spare is null");
            return (Criteria) this;
        }

        public Criteria andSpareIsNotNull() {
            addCriterion("spare is not null");
            return (Criteria) this;
        }

        public Criteria andSpareEqualTo(String value) {
            addCriterion("spare =", value, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareNotEqualTo(String value) {
            addCriterion("spare <>", value, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareGreaterThan(String value) {
            addCriterion("spare >", value, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareGreaterThanOrEqualTo(String value) {
            addCriterion("spare >=", value, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareLessThan(String value) {
            addCriterion("spare <", value, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareLessThanOrEqualTo(String value) {
            addCriterion("spare <=", value, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareLike(String value) {
            addCriterion("spare like", value, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareNotLike(String value) {
            addCriterion("spare not like", value, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareIn(List<String> values) {
            addCriterion("spare in", values, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareNotIn(List<String> values) {
            addCriterion("spare not in", values, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareBetween(String value1, String value2) {
            addCriterion("spare between", value1, value2, "spare");
            return (Criteria) this;
        }

        public Criteria andSpareNotBetween(String value1, String value2) {
            addCriterion("spare not between", value1, value2, "spare");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}